package com.starinside.wp.repository.teststore;

import com.starinside.wp.domain.familyTest.TestStoreObsTask;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface TestStoreObsTaskRepository extends JpaRepository<TestStoreObsTask, String> {

    List<TestStoreObsTask> findAllByChildrenIdInOrderByCreatedDesc(String[] childrenIds, Pageable pageable);

    Integer countAllByChildrenIdInOrderByCreatedDesc(String[] childrenIds);

    TestStoreObsTask findFirstById(String id);

}
